/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2021-2021. All rights reserved.
 */

package com.huawei.rpc.common.prorocol;


/**
 * @Author Lijl
 * @ClassName Status
 * @Description 响应状态码
 * @Date 2022/2/15 13:36
 * @Version 1.0
 */
public enum Status {
    SUCCESS(200,"SUCCESS"),
    ERROR(500,"ERROR"),
    NOT_FOUND(404,"NOT_FOUND");

    private int code;

    private String message;

    Status(int code, String message){
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
